import {
  BaseModel
} from 'base.js';
import {
  HTTP
}
  from '../utils/http.js'

class WorkerModel extends BaseModel {
  store(data) {
    return this.request({
      url: '/api/worker/store',
      method: 'POST',
      data: data
    })
  }
  update(id, data) {
    return this.request({
      url: `/api/worker/update/${id}`,
      method: 'put',
      data: data
    })
  }
  getMine(status) {
    return this.request({
      url: `/api/worker/mine/${status}`,
    })
  }
  show(id) {
    return this.request({
      url: `/api/worker/show/${id}`,
    })
  }
  reason(id) {
    return this.request({
      url: `/api/worker/reason/${id}`,
    })
  }
  explain() {
    return this.request({
      url: `/api/worker/explain`,
    })
  }
  worker() {
    return this.request({
      url: `/api/worker/worker`,
    })
  }
}
export {
  WorkerModel
}